<html>
<%@ page language="java" pageEncoding="UTF-8" %>
<%@page import="com.ailk.helios.common.web.AppSessionUtil" %>
<title>单品活动列表</title><% String paId = request.getParameter("paId");
    String parlRngType = request.getParameter("parlRngType");
    String paPrmType = request.getParameter("paPrmType");
    String flag = request.getParameter("flag");
    String ruleListSize = request.getParameter("ruleListSize");
    Integer mchtType = AppSessionUtil.getMchtType(request.getSession());%>
<body><!-- content begin -->
<div class="w780 fl">
    <div class="b1ecf mb10"><%--						<div class="pl10 lh27 bgf1f6 clearfix">--%><%--							<h4 class="fl c5f8">设置活动备选赠品池：如果您要设置的赠品对象为商品，请务必先在这里设置赠品商品池</h4>--%><%--							<ul id="giftli" class="conList3 fr mt4">--%><%--								<li><a class="biconSave a1 fl" href="###" onclick="savePaGift(this);"><em class="t2">保存</em>保存</a></li>--%><%--								<!-- 		                     <li><a class="biconDelete fl a1" href="###" onclick="deletePaGift(this);"><em class="t2">删除</em>删除</a></li>--%><%--                                 -->		                     <li><a class="aiconOff fl pr t2" href="###" onclick="expend(this);" title="收缩">收缩</a></li>--%><%--							</ul>--%><%--						</div>--%>
        <div class="w678 mt10 clearfix" id="paGiftId"><span class="fl mr15 pr" id="u6"><input type="radio" id="u6_input"
                                                                                              name="configType"
                                                                                              onclick="docheck();"
                                                                                              value="1"
                                                                                              checked="checked"><label
                class="ml5" style="vertical-align: 2px;">赠送本商品</label></span><span class="fl mr15 pr" id="u8"><input
                type="radio" id="u8_input" name="configType" onclick="docheck();" value="2"><label class="ml5"
                                                                                                   style="vertical-align: 2px;">赠送其他商品</label></span>
            <div class="h26 mt10 ml10 w678"><a id="addGiftId" onclick="selItem();" href="###" class="eBtn1 fl mr15">添加赠品<s
                    class="sl"></s><s class="sr"></s></a></div>
        </div>
    </div>
    <div class="headName1 pl10 bbdfe4e7"><span class="operHelp" name="operHelp">操作帮助<i>操作帮助</i></span>
        <h3>活动规则信息</h3></div>
    <div id="div1" class="pl10 pr10 pt10 lh22">
        <div class="b1ecf mb10">
            <div class="pl10 lh27 bgf1f6 clearfix"><h4 class="fl c5f8">●规则</h4>
                <ul class="conList3 fr mt4">
                    <li><a class="biconSave a1 fl" href="###" onclick="expend(this,null,1);"><em
                            class="t2">保存</em>保存</a></li>
                    <li><a class="biconDelete fl a1" href="###" onclick="biconDelete(this);"><em
                            class="t2">删除</em>删除</a></li>
                    <li><a class="aiconOff fl pr t2" href="###" onclick="expend(this);" title="收缩">收缩</a></li>
                </ul>
            </div>
            <div>
                <div class="pt10 bt1ecf clearfix"><span class="w130 tr fl"><em class="cred">*</em>渠道商/门店范围：</span>
                    <div id="rangeDiv1" class="w690 fl"><p class="clearfix pl5"><a href="javascript:;" class="eBtn1 fl"
                                                                                   onclick="selDealer('',1);">选择区域<s
                            class="sl"></s><s class="sr"></s></a></p>
                        <div class="w670 b1cccd conList5 undis"><span class="label">已选择：</span>
                            <ul id="reginCheckedList1"></ul>
                            <span class="more close undis">更多<i></i></span></div>
                    </div>
                </div>
                <div class="pt5 pb10 clearfix fl w800"><span class="w85 tr fl"><em
                        class="cred">*</em>活动方案：</span><select id="parlDtlType1" class="actSel eSelect w90 fl"
                                                               onchange="actSelchange(this,1);">
                    <option value="2">按比例</option>
                    <option value="1">按区间</option>
                </select></div>
                <div id="dtlDiv1">
                    <div class="pt5 pb10 clearfix fl w800" name="ruleDtl"><span class="w85 tr fl"><em
                            class="cred">*</em>细则·：</span>
                        <p class="scael fl clearfix"><span class="fl mr5">一次提货满</span><input onchange="validate(this);"
                                                                                             name="dtlCondBgnNum1"
                                                                                             type="text"
                                                                                             class="eInput w50 fl mr5"><span
                                class="fl mr5">台，</span><span class="fl mr5">每提货</span><input onchange="validate(this);"
                                                                                              name="dtlCondEndNum1"
                                                                                              type="text"
                                                                                              class="eInput w50 fl mr5"><span
                                class="fl">台，</span><span class="fl mr5">赠</span><select name="dtlGiftType"
                                                                                         class="eSelect w90 fl mr10">
                            <option value="2">商品</option>
                            <option value="3">积分</option>
                        </select><input onchange="validate(this);" name="dtlRsltNum1" type="text"
                                        class="eInput w50 fl mr5" style="display:none"></p>
                        <div name="giftDiv"><p style="clear:both"></p>
                            <p class="ml80"><span>赠送方式：</span><span><input type="radio" class="eRadio" name="giftrlt11"
                                                                           value="2" checked="true">多选一（用户前台可选赠品）</span><span><input
                                    type="radio" class="eRadio" name="giftrlt11" value="1">一起送（以下多种赠品均送给用户）</span></p>
                            <p class="h24 cf40 ml80">提示：默认展示赠品池里的所有sku，您可以根据需要进行删除操作</p>
                            <div style="clear:both;"></div>
                            <div id="giftTableDiv11" class="w678 mt10  ml70"></div>
                        </div>
                        <p></p></div>
                </div>
                <div class="pb10 clearfix"><span class="w90 tr fl">&nbsp;</span><a href="###" class="eBtn1 fl"
                                                                                   onclick="addNewRuleDtl(1,1);">添加细则<s
                        class="sl"></s><s class="sr"></s></a></div>
            </div>
        </div>
    </div>
    <p class="pl10 pr10 pb10"><a href="###" class="addRule pl20" onclick="addNewRule();">添加新规则<i></i></a></p></div>
<p class="pl10 pr10 pb10"><a href="###" class="addRule pl20" onclick="addNewRule();">添加新规则<i></i></a>
</p><%if ("v".equals(flag)) { %>
<div class="pt10 tc"><a href="###" onclick="actSubmit();" class="eBtn2 mr30" name="actSubmit">提交<s class="sl"></s><s
        class="sr"></s></a><a href="###" class="eBtn3 mr15" onclick="submitCancel();">取消<s class="sl"></s><s
        class="sr"></s></a></div>
<%} else { %>
<div class="pt10 tc"><a href="###" class="eBtn1 mr30" onclick="toEditPage();">上一步<s class="sl"></s><s
        class="sr"></s></a><a href="###" onclick="actSubmit();" class="eBtn2 mr30" name="actSubmit">提交<s class="sl"></s><s
        class="sr"></s></a><a href="###" class="eBtn3 mr15" onclick="submitCancel();">取消<s class="sl"></s><s
        class="sr"></s></a></div>
<%}%> <!-- content end -->
<script type="text/javascript"> /*活动ID*/
var paId = '<%=paId%>';
var ruleOrder = <%=ruleListSize%>;
var dtlOrder = 1;
var parlRngType = '<%=parlRngType%>';
var flag = "<%=flag%>";
var paPrmType = "<%=paPrmType%>";
var isRuleCommit = false;
var ruleEditNums = 0;
var newRuleId = null;
var mchtType =<%=mchtType%>;</script>
</body>
<script type="text/javascript" src="${pageContext.request.contextPath}/res/jq/plugins/jquery.tmpl.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/res/jq/plugins/source/jquery.md5.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/res/jsutil/StringUtils.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/res/jsutil/DateUtils.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/res/jsutil/ValidateUtils.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/res/cui/datepicker/My97DatePicker/WdatePicker.js"></script>
<div class="zheaoStyle">
    <div id="displayBox" class="displayBox"></div>
    <div><img src="${pageContext.request.contextPath}/sys/res/ext/resources/images/default/shared/large-loading.gif"/>
    </div>
</div>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/admin/promact/t1/fullCut/js/platformCustomer.js"></script>
</html>
